package su.mvc.model;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;

import javax.persistence.Id;

@Entity
public class Image {

    @Id
    private Long id;
    
    private String contentType;

    private Key parentItemKey;

    private byte[] image;

    private byte[] icon;
    
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public byte[] getImage() {
        return image;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Key getParentItemKey() {
        return parentItemKey;
    }

    public void setParentItemKey(Key parentItemKey) {
        this.parentItemKey = parentItemKey;
    }

    public byte[] getIcon() {
        return icon;
    }

    public void setIcon(byte[] icon) {
        this.icon = icon;
    }
}
